Improve ert-font-lock assertion parser (Bug#69714)
authorVladimir Kazanov <vekazanov@gmail.com>
Tue, 12 Mar 2024 11:14:54 +0000 (11:14 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 28 Mar 2024 09:40:27 +0000 (11:40 +0200)
commitcdd7093e17a33a6efc4721af461af180e5af602d
treea9b5fc7f0faeeca3c2739da076f2cc038a9b4298
parent35ae2c576b8570da7b2e791991ad852c648be896
Improve ert-font-lock assertion parser (Bug#69714)

Fail on files with no assertions, parser now accepts multiple
carets per line and face lists:
* lisp/emacs-lisp/ert-font-lock.el: Assertion parser fix.
* test/lisp/emacs-lisp/ert-font-lock-resources/no-asserts.js:
* test/lisp/emacs-lisp/ert-font-lock-tests.el
(test-parse-comments--no-assertion-error)
(test-syntax-highlight-inline--caret-negated-wrong-face)
(test-macro-test--file-no-asserts): New test cases.
* doc/misc/ert.texi (Syntax Highlighting Tests): More syntax examples.
doc/misc/ert.texi
lisp/emacs-lisp/ert-font-lock.el
test/lisp/emacs-lisp/ert-font-lock-resources/no-asserts.js [new file with mode: 0644]
test/lisp/emacs-lisp/ert-font-lock-tests.el